/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*-  */
/*
 * catchit
 * Copyright (C) 2013 Ryan Grinkewitz <graphite@Toto>
 * 
 */

#ifndef _PLATFORM_H_
#define _PLATFORM_H_

#include "SDL/SDL.h"
#include "constants.h"

const int PLATFORM_HEIGHT = 3;
const int PLATFORM_WIDTH = 64;
const int PLATFORM_X_OFFSET = 0;
const int PLATFORM_Y_OFFSET = 29;

class Platform
{
	
public:
	Platform(int platformLocation);
	~Platform();

	void setPlatformLocation(int platformLocation){ this->platformLocation
			= platformLocation;};
	int getPlatformLocation(){return platformLocation;};

	int* getSpriteIds();
	void setSpriteIds(int sprite1, int sprite2);

	void setPlatformYPosition(int platformYPosition);
	int getPlatformYPosition();
	void setPlatformXPosition(int platformXPosition);
	int getPlatformXPosition();

	SDL_Rect* getCollisionBox();
	
protected:

private:
	const static int PLATFORM_PIXEL_SIZE = 64;


	//location is a value 1 through 10 indicating the horizontal
	//position of the platform
	int platformLocation;

	int platformYPosition;
	int platformXPosition;

	int spriteIds[2];

	SDL_Rect* collisionBox;
	
};

#endif // _PLATFORM_H_

